package com.sunny.dao;

import com.sunny.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User checkDomainAccount(String domainAccount);

    List<User> selectUser(@Param("username") String username, @Param("role") String role, @Param("state") String state);
}